package com.blacktech.dbu.meta.dto;

import com.blacktech.dbu.core.dict.ColumnType;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * 字段库搜索请求DTO
 *
 * @author Yanyunsong
 */
@Data
public class FieldLibrarySearchRequest {

    @NotNull(message = "产品ID不能为空")
    private Long productId;

    private String keyword;

    private ColumnType fieldType;

    private String fieldGroup;

    private Boolean isRequired;

    private Boolean isPrimaryKey;

    private Boolean isUnique;

    private Boolean isEnabled = true;

    private Integer page = 0;

    private Integer size = 20;

    private String sortBy = "usageCount";

    private String sortDirection = "desc";
}